//package com.rabbitmq.topic.producer;
//
//import com.rabbitmq.topic.config.RabbitTopicConfigure;
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Author: hualao
// * @Version: 0.0.1V
// * @Date: 2018/10/24
// * @Description: 消息生产者
// **/
//@Component
//public class ProducerTopic {
//    @Autowired
//    private AmqpTemplate rabbitTemplate;
//
//    public void message() {
//        rabbitTemplate.convertAndSend(RabbitTopicConfigure.exchange, RabbitTopicConfigure.message, "message");
//    }
//
//    public void message2() {
//        rabbitTemplate.convertAndSend(RabbitTopicConfigure.exchange, RabbitTopicConfigure.message2, "message2");
//    }
//
//    public void messages() {
//        rabbitTemplate.convertAndSend(RabbitTopicConfigure.exchange, RabbitTopicConfigure.messages, "messages");
//    }
//}
